package com.demo.service.impl;

import com.demo.pojo.User;
import com.demo.service.UserService;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Override
    public boolean login(User user) {
        if ("admin".equals(user.getUname()) && "123".equals(user.getUpass())) {
            return true;
        }
        return false;
    }

    @Override
    public boolean register(User user) {
        if ("admin".equals(user.getUname()) && "123".equals(user.getUpass())) {
            return true;
        }
        return false;
    }
}
